
public class Test {

    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.createTree();
        System.out.println("=======前序=======");
        binaryTree.preOrder(root);
        System.out.println();

        binaryTree.preOrder(root);
        System.out.println();
        System.out.println("=======中序=======");
        binaryTree.inOrder(root);
        System.out.println();
        System.out.println("=======后序=======");

        binaryTree.postOrder(root);
        System.out.println();
        System.out.println("=======层序=======");
    }
}
